package com.woniuxy.stall.feign;

import com.woniuxy.certified.dao.CertifiedInfo;
import com.woniuxy.core.model.Result;
import com.woniuxy.stall.dto.CertifiedAccount;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "certified-server")
@ComponentScan
public interface CertifiedClient {


    @GetMapping("/certified/certifiedInfo/findCertifiedAccountById")
    Result<CertifiedAccount> findCertifiedAccountById(@RequestParam("certifiedInfoId") Integer certifiedInfoId);
    @GetMapping("/certified/certifiedInfo/findCertifiedById")
    Result<CertifiedInfo> findCertifiedInfoById(@RequestParam("certifiedInfoId") Integer certifiedInfoId);


}
